-
Home
-
WPBase Cache
-
5.5.4
-
Code
-
Classes
- MasterSlaveReplication
Total Complexity |
76 |
Dependencies |
10 |
Dependents |
1 |
Total lines |
480 |
Lines of code |
234 |
Logical lines of code |
128 |
Comment lines |
137 |
Methods |
29 |
Properties |
6 |
Methods 29
Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
retryCommandOnFailure() |
A |
48 |
11 |
33 |
getConnection() |
S |
58 |
7 |
17 |
discover() |
S |
56 |
5 |
19 |
discoverFromMaster() |
S |
55 |
5 |
18 |
switchTo() |
S |
61 |
5 |
12 |
connect() |
S |
65 |
4 |
10 |
remove() |
S |
60 |
3 |
14 |
handleInfoResponse() |
S |
62 |
3 |
11 |
disconnect() |
S |
68 |
3 |
8 |
getConnectionById() |
S |
66 |
3 |
9 |
add() |
S |
65 |
3 |
9 |
discoverFromSlave() |
S |
58 |
2 |
14 |
getMasterOrDie() |
S |
71 |
2 |
6 |
setAutoDiscovery() |
S |
71 |
2 |
6 |
pickSlave() |
S |
74 |
2 |
5 |
isConnected() |
S |
79 |
2 |
3 |
__construct() |
S |
79 |
2 |
3 |
writeRequest() |
S |
80 |
1 |
3 |
readResponse() |
S |
79 |
1 |
3 |
executeCommand() |
S |
79 |
1 |
3 |
getSlaves() |
S |
80 |
1 |
3 |
getReplicationStrategy() |
S |
82 |
1 |
3 |
getMaster() |
S |
82 |
1 |
3 |
getCurrent() |
S |
82 |
1 |
3 |
switchToSlave() |
S |
77 |
1 |
4 |
switchToMaster() |
S |
81 |
1 |
3 |
reset() |
S |
81 |
1 |
3 |
setConnectionFactory() |
S |
81 |
1 |
3 |
__sleep() |
S |
79 |
1 |
3 |